﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_control_ucDemoCKEditor : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            CKEditorControl1.Language = "vi";
            //CKEditorControl1.config.filebrowserImageBrowseUrl = "/ckfinder/ckfinder.html?type=Images";
            //CKEditorControl1.config.filebrowserImageUploadUrl = "/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images";
            CKFinder.FileBrowser _FileBrowser = new CKFinder.FileBrowser();
            _FileBrowser.BasePath = "/hou-elearning/ckfinder/";
            _FileBrowser.SetupCKEditor(CKEditorControl1);

        }
    }
    protected void btnShow_Click(object sender, EventArgs e)
    {
        divData.InnerHtml = CKEditorControl1.Text;
    }
    protected void btnJHTML_Click(object sender, EventArgs e)
    {
        divJhtml.InnerHtml = txtGhichu.Text;
    }
}